package com.cropdoctor.model.doc;

import com.cropdoctor.model.po.VegeFrutablePo;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.BeanUtils;


@NoArgsConstructor
@Data
public class VegeFruTableDoc extends VegeFrutablePo {
    private String all;//name mt st三者结合

    public VegeFruTableDoc(VegeFrutablePo vegeFrutablePo) {
        BeanUtils.copyProperties(vegeFrutablePo,this);
        this.all = vegeFrutablePo.getMt() +","+vegeFrutablePo.getSt() + ","+vegeFrutablePo.getName()+","+vegeFrutablePo.getAlias();
    }
}
